package top.misspro.valheim.service;

import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.cvm.v20170312.CvmClient;
import com.tencentcloudapi.cvm.v20170312.models.DescribeZonesRequest;
import com.tencentcloudapi.cvm.v20170312.models.DescribeZonesResponse;

/**
 * @author Evan
 */
public class TencentCloudServiceImpl implements TencentCloudService {

    private String signatureTC3(){
        //实例化一个认证对象
        Credential credential = new Credential("AKIDVTCfvvepKZbPwGnOCo9HC1bvKWS7qhcH","c0AG5gLyLRHujIbdSr0tRlpdATVLvNaY");
        CvmClient client = new CvmClient(credential,"ap-guangzhou");
        DescribeZonesRequest request = new DescribeZonesRequest();
        request.set("Action","RunCommand");
        request.set("Version","2020-10-28");
        try {
            //执行请求
            DescribeZonesResponse response = client.DescribeZones(request);
        } catch (TencentCloudSDKException e) {
            e.printStackTrace();
        }
        return "";
    }

}
